

#include <iostream>

using namespace std;


void test_case1() {
    int x = 0;
    int y = 42;
    auto qq = [x, &y] {

        std::cout << "x: " << x << std::endl;
        std::cout << "y: " << y << std::endl;
        ++y;
        //x is read only
        //++x;
    };

    qq();

    std::cout << "x: " << x << std::endl;
    std::cout << "y: " << y << std::endl;
}

int main() {

    test_case1();

    return 0;
}